package com.tentact.coolmeetingtest.vo;

import com.tentact.coolmeetingtest.annotation.AutoBuild;

/**
 * @author 星环
 * @date 2023/1/10 14:58:25
 * @description
 */
@AutoBuild
public class Emp {
    private int empno;
    private String empName;
    private String username;
    private String pwd;
    private String tel;
    private String email;
    private int deptno;
    private EmpState state;
    //一下为业务需求
    private String deptName;


    @Override
    public String toString() {
        return "Emp{" +
                "empno=" + empno +
                ", empName='" + empName + '\'' +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", deptno=" + deptno +
                ", state=" + state + (state == null ? "-" : state.getDesc()) +
                ", deptName=" + deptName +
                '}';
    }

    public Emp(){

    }

    public Emp(int empno, String empName, String username, String pwd, String tel, String email, int deptno, EmpState state) {
        this.empno = empno;
        this.empName = empName;
        this.username = username;
        this.pwd = pwd;
        this.tel = tel;
        this.email = email;
        this.deptno = deptno;
        this.state = state;
    }

    public Emp(int empno, String empName, String username, String pwd, String tel, String email, int deptno, int state) {
        this.empno = empno;
        this.empName = empName;
        this.username = username;
        this.pwd = pwd;
        this.tel = tel;
        this.email = email;
        this.deptno = deptno;
        this.state = EmpState.getByState(state);
    }

    public int getEmpno() {
        return empno;
    }

    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public EmpState getState() {
        return state;
    }

    public void setState(int state) {
        this.state = EmpState.getByState(state);
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }
}
